<?php
require "../template/header.php";
require "../function/function_user.php";
require "../function/function_tip.php";

if ($mysqlpass!=$cookiepass){
header("Location:../do.php?type=logints");
}
?>
	<body>
		<div id="warp">
			<div id="user-header">
				<div id="user-logo">
					<a href="./">
						<img border="0" src="../images/logo.png">
					</a>
				</div>
<?php
require_once "../template/user_info.php";
?>
			</div>
			<div id="user-content">
				<div id="user-content-left">
<?php
require_once "../template/user_menu.php";
?>
				</div>
				<div id="user-content-right">
					<div id="user-content-right-main">
						<div id="user-content-right-main-tou">
							<a href="./">首页</a> > <a href="./">会员中心</a>
						</div>
						<div id="user-content-right-main-tip">
							<div id="user-content-right-main-tip-title">
								顶尖会员专属特权
							</div>
							<?php
							if ($userdata['tip']==0){
								echo tippage();
							}else{
							if (isset($_POST['sidnew']) and isset($_POST['qqbatch']) and isset($_POST['emailhi'])){
							$sidnew=$_POST['sidnew'];
							$batch=$_POST['qqbatch'];
							$emailsend=$_POST['emailhi'];
							mysql_query("UPDATE xige_info SET sidnew= '$sidnew', batch='$batch', emailsend='$emailsend' WHERE email= '$cookieuser'");
							}
							echo tipset($cookieuser);
							}
							?>
						</div>
					</div>
				</div>
			</div>
			<div id="footer">
<?php
require "../template/footer.php";
?>